import request from '@/utils/request'

export function query(query) {
  return request({
    url: '/protect-company/list', method: 'get', params: query
  })
}

export function add(data) {
  return request({
    url: '/protect-company', method: 'post', data: data
  })
}

export function remove(ids) {
  return request({
    url: '/protect-company/delete', method: 'post', data: { ids }
  })
}

export function update(data) {
  return request({
    url: '/protect-company', method: 'put', data
  })
}
